package com.example.micrweb.front.controller;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboReference;
import org.example.api.service.*;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Controller;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/7/11 下午 07:06
 * @version: v1.0
 */
public class BaseController {

    @Resource
    protected StringRedisTemplate stringRedisTemplate;
    // 声明公共的方法、属性等
    // 平台信息服务
    @DubboReference(interfaceClass = PlatBaseInfoService.class, version = "1.0")
    protected PlatBaseInfoService platBaseInfoService;

    // 产品服务
    @DubboReference(interfaceClass = ProductInfoService.class, version = "1.0")
    protected ProductInfoService productInfoService;

    /*投资服务*/
    @DubboReference(interfaceClass = InvestService.class, version = "1.0")
    protected InvestService investService;

    /*注册服务：手机号码验证*/
    @DubboReference(interfaceClass = UserService.class, version = "1.0")
    protected UserService userService;

    @DubboReference(interfaceClass = ImageService.class, version = "1.0")
    protected ImageService imageService;
}
